package com.njwb.day01;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        /*对学生的成绩进行划分等级
        90~100 -----》 A
        80~89 -----》B
        70~79 -----》C
        60~69 -----》D
        0~59 -----》E*/
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int score=sc.nextInt();
        if(score>=90&&score<=100){
            System.out.println("A");
        }else if(score>=80&&score<=89){
            System.out.println("B");
        }else if(score>=70&&score<=79){
            System.out.println("C");
        }else if(score>=60&&score<=69){
            System.out.println("D");
        }else if(score>=0&&score<=59){
            System.out.println("E");
        }else {
            System.out.println("你给定的分值不符合要求");
        }








    }
}
